﻿$(document).ready(function () {
    var lotteryhtml = $(".lotterycontent").html();
    lotteryhtml = lotteryhtml.replace("15000万", "15000");
    $(".lotterycontent").html(lotteryhtml);
    $(".lotteryother a").attr("href", "/search/emallSearch.htm?gameId=22&currentPage=1&parValueStr=&searchType=yb&chargeType=&pageSize=20&ybSegmentStr=&sortOrder=0&minPackagePriceStr=&maxPackagePriceStr=")
    $("#J_form").submit(function () {
        var url = $(this).find("input:hidden").val();
        var val = $(this).find("input:visible").val();
        if (val.length < 1) { alert("请填写帐号！"); return false; };
        var data = { "ptid": val };
        $.ajax({
            async: false,
            type: "post",
            url: url,
            data: data,
            dataType: "text",
            success: function (msg) {
                $("#J_tip").html(msg);
                return false;
            },
            error: function () {
                alert("抱歉，出错了！请刷新页面后再试。");
                return false;
            }
        });
        return false;
    });
});